﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="order_postscript_set.aspx.cs" Inherits="backstage_order_postscript_set" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>留言回复</title>
    <link href="css/skin.css" rel="stylesheet" type="text/css" />
</head>

<script type="text/javascript" src="js/main.js"></script>

<script type="text/javascript" src="js/jquery.min.js"></script>

<script type="text/javascript" src="js/jquery.js"></script>

<script type="text/javascript">
    $(function () {
        $("#btnSubmit").click(function () {
            if ($("#txtRows").val() == "") {
                alert("请输入行数！");
                $("#txtRows").focus();
                return false;
            } if ($("#txtCols").val() == "") {
                alert("请输入列数！");
                $("#txtCols").focus();
                return false;
            }
            if ($("#txtaPostscript").html().length > 500) {
                alert("附言内容最多只能输入500个字符！");
                $("#txtaPostscript").focus();
                return false;
            }
            return true;
        });
    });
</script>
<body class="body">
    <table class="main" cellpadding="0" cellspacing="0">
        <tr>
            <td class="td_left_top">
                <img alt="" src="images/left-top-right.gif" /></td>
            <td class="td_middle_top">
                <div class="left_topbg">
                    <div class="titlebt">
                        附言设置</div>
                </div>
            </td>
            <td class="td_right_top">
                <img alt="" src="images/nav-right-bg.gif" /></td>
        </tr>
        <tr>
            <td class="td_left_middle">
            </td>
            <td class="td_middle_middle">
                <div class="maincontent">
                    <form id="form1" runat="server">
                        <table cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td class="td_title">
                                    行数：</td>
                                <td class="td_content">
                                    <input id="txtRows" runat="server" maxlength="2" type="text" onpaste="return false" style="ime-mode:disabled"
                                        onkeypress="if ((event.keyCode<48 || event.keyCode>57||event.keyCode==46)) event.returnValue=false" />*
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    列数：</td>
                                <td class="td_content">
                                    <input id="txtCols" runat="server" maxlength="2" type="text" onpaste="return false" style="ime-mode:disabled"
                                        onkeypress="if ((event.keyCode<48 || event.keyCode>57||event.keyCode==46)) event.returnValue=false" />*
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    附言内容：</td>
                                <td class="td_content">
                                    <textarea id="txtaPostscript" runat="server"></textarea>*最多500个字符
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Button ID="btnSubmit" runat="server" Text="确  定" CssClass="formButton" OnClick="btnSubmit_Click"/>&nbsp;&nbsp;&nbsp;&nbsp;
                                    <input id="btnBack" type="button" class="formButton" value=" 返  回 " onclick="location.href='order_list.aspx';" /></td>
                            </tr>
                        </table>
                    </form>
                </div>
            </td>
            <td class="td_right_middle">
            </td>
        </tr>
        <tr>
            <td class="td_left_bottom">
                <img alt="" src="images/buttom_left2.gif" />
            </td>
            <td class="td_middle_bottom">
                <img alt="" src="images/buttom_bgs.gif" />
            </td>
            <td class="td_right_bottom">
                <img alt="" src="images/buttom_right2.gif" />
            </td>
        </tr>
    </table>
</body>
</html>
